package cn.edu.lingnan.before.serivce;

import cn.edu.lingnan.common.JSONResult;

import javax.servlet.http.HttpSession;

public interface UserService {
    // 检查邮箱的唯一性和格式
    JSONResult<Void> checkEmailService(String email);
    //密码的非空判断和一致性判断
    JSONResult<Void> checkPasswordAndConfirmPwd(String password,String confirmPwd);
    // 发送邮件验证码给指定QQ邮箱
    JSONResult<Void> sendEmail(String email, HttpSession session);
    // 检查客户端QQ邮箱验证码是否正确
    JSONResult<Void> checkEmailCode(String emailCode,HttpSession session);
    // 注册
    JSONResult<Void> doReg(String email,String password,String confirmPwd,String emailCode,HttpSession session);
    // 检查登录邮箱的格式和是否已经注册
    JSONResult<Void> checkLoginEmail(String email);
    //登录检测
    JSONResult<Void> doLogin(String email,String password,String code,HttpSession session);
}
